/**
 * Created by Administrator on 2016/8/2.
 */

$(function(){
    $('.detail .detail-tab ul li').each(function(index){
        $(this).click(function(){
            $('.detail .detail-tab ul li').removeClass('current').eq(index).addClass('current');
            $('.detail .detail-content div').css('display','none').eq(index).css('display','block');
        })
    });


    var img = ['images/detail/show.jpg','images/detail/show2-2.jpg','images/detail/show3-3.jpg','images/detail/show4-4.jpg'];
    $('.show .small-show li').each(function (index) {
        $(this).on('click',function(){
            $('.show .big-show img').attr('src',img[index]);
        })
    })


});

//var Detailnav = document.getElementsByClassName(".detail-nav");
//var widegsubnavone = 0;
//var widegsubnavtwo = 0;
//window.onscroll = function () {
//    widegsubnavone = document.body.scrollTop;
//    if(widegsubnavone<1000){
//        Detailnav.classList.remove('.fixed');
//    }else {
//        NavSub(widegsubnavone);
//        Menu.style.display = 'none';
//        DisclosureIcon.style.backgroundPosition = 14+'px';
//    }
//    widegsubnavtwo = widegsubnavone;
//};
//function NavSub(e) {
//    if(widegsubnavtwo>e){
//        Detailnav.classList.add('.fixed');
//    }else {
//        Detailnav.classList.remove('.fixed');
//    }
//}
